package com.stack.apis.admin;

import com.stack.apis.admin.fallback.IAdminClientFallback;
import com.stack.model.admin.dtos.AdNewsDto;
import com.stack.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-admin", fallback = IAdminClientFallback.class)
public interface IAdminClient {

    @PostMapping("/api/v1/AdCheckNews/save")
    public ResponseResult saveAdCheckNews(@RequestBody AdNewsDto dto);

    @PostMapping("/api/v1/AdCheckNews/update")
    Boolean updateAdCheckNews(@RequestBody AdNewsDto adNewsDto);
}
